<?php
namespace app\mxty\logic;

use app\mxty\model\Referee as RefereeModel;

class Referee
{
  public function getAllReferee()
  {
    $list = RefereeModel::getAll();
    return $list->toArray();
  }

  public function calcRefereePrice($refereeIds)
  {
    $total = (new RefereeModel)->sumRefereesPrice($refereeIds);
    return $total;
  }

  public function getRefereesById($refereeIds)
  {
    return (new RefereeModel)->selectReferees($refereeIds);
  }
}
